package it.disim.tlp.webreputation.simulation;

import java.util.ArrayList;
import java.util.List;

public class TopicExtractor {
	public static String[] getTopics(String s){
		String[] temp = s.split(" ");
		List<String> l = new ArrayList<String>();
		for(String t : temp){
			t = t.replaceAll("\\p{Punct}", "");
			if(t.length() > 6)
				l.add(t);
		}
		return l.toArray(new String[l.size()]);
	}
}
